<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
<a href="https://www.baidu.com/">百度</a             >
<script type="text/javascript">
	
	let a = document.querySelector('a')
	a.addEventListener('click',function(e) {
		e.preventDefault()
	})

	//浏览器右键菜单 禁用
	document.oncontextmenu = function(e) {
		e.preventDefault()
	}
</script>
</body>
</html>